
   function createUserManagerPanel(){

	var userSearchCriteriaStore=CRM.commons.createComboStore('userSearchCriteriaStoreid', 'userManager/userSearchCriteriaTypes');
   	var userStore=CRM.commons.createStore('userStoreid',CRM.SPComp.userDataArray,'userManager/showUsers');	   

		var homePanel = {
			xtype		: 'panel',	
			id			: 'homePanel',
			title		: 'Home',
			autoWidth	: true,
			autoHeight	: true,
			items		: [
			     		    /*
			     		     *	This is the search.js. This is implemented for lead search.
			     		     *  Here this is being use to Search User.
			     		     */
							CRM.SPComp.createSearchComp('spSearchUserGridPanel', 'searchCriteria', 'criteriaValue', userStore, CRM.SPComp.createUserColumnModel(), userSearchCriteriaStore)
			     		   ]
		};
		
		var detailsPanel = {
			xtype		: 'panel',	
			id			: 'detailsPanel',
			title		: 'Details',
			autoWidth	: true,
			autoHeight	: true,
			items		: [userInfoDeatilsPanel()]
		};
	   	

	   
	   	var mainTabPanel = new Ext.TabPanel({
	   		xtype		: 'tabpanel',
	   		id			: 'mainTabPanel',
	   		activeTab	: 0,
	   		items		: [homePanel, detailsPanel]
	   	});
	   	
   
	    var mainPanel = new Ext.Panel({
   			xtype		: 'panel',
   			//renderTo 	: Ext.getBody(),
   			id			: 'mainPanel',
   	    	width   	: 1350,
   	    	height		: 680,
   	    	frame     	: false,
   			items		: [
   			     		   	//CRM.SPComp.createHeader(3,0),
   			     		   	mainTabPanel
   			     		   ]
		});
	    return mainPanel;
   }